/**
 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package de.hsmannheim.pepa.patientenportal.apanwep.model;

import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.model.ModelWrapper;

import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * This class is a wrapper for {@link chronik}.
 * </p>
 *
 * @author Cedric Nana
 * @see chronik
 * @generated
 */
public class chronikWrapper implements chronik, ModelWrapper<chronik> {
	public chronikWrapper(chronik chronik) {
		_chronik = chronik;
	}

	@Override
	public Class<?> getModelClass() {
		return chronik.class;
	}

	@Override
	public String getModelClassName() {
		return chronik.class.getName();
	}

	@Override
	public Map<String, Object> getModelAttributes() {
		Map<String, Object> attributes = new HashMap<String, Object>();

		attributes.put("chronik_id", getChronik_id());
		attributes.put("datetime", getDatetime());
		attributes.put("message", getMessage());
		attributes.put("object", getObject());
		attributes.put("participant", getParticipant());
		attributes.put("user_id", getUser_id());
		attributes.put("event_date_time_at", getEvent_date_time_at());
		attributes.put("event_date_time_down", getEvent_date_time_down());
		attributes.put("event_action", getEvent_action());
		attributes.put("enable", getEnable());

		return attributes;
	}

	@Override
	public void setModelAttributes(Map<String, Object> attributes) {
		Long chronik_id = (Long)attributes.get("chronik_id");

		if (chronik_id != null) {
			setChronik_id(chronik_id);
		}

		String datetime = (String)attributes.get("datetime");

		if (datetime != null) {
			setDatetime(datetime);
		}

		String message = (String)attributes.get("message");

		if (message != null) {
			setMessage(message);
		}

		String object = (String)attributes.get("object");

		if (object != null) {
			setObject(object);
		}

		String participant = (String)attributes.get("participant");

		if (participant != null) {
			setParticipant(participant);
		}

		Long user_id = (Long)attributes.get("user_id");

		if (user_id != null) {
			setUser_id(user_id);
		}

		String event_date_time_at = (String)attributes.get("event_date_time_at");

		if (event_date_time_at != null) {
			setEvent_date_time_at(event_date_time_at);
		}

		String event_date_time_down = (String)attributes.get(
				"event_date_time_down");

		if (event_date_time_down != null) {
			setEvent_date_time_down(event_date_time_down);
		}

		String event_action = (String)attributes.get("event_action");

		if (event_action != null) {
			setEvent_action(event_action);
		}

		Long enable = (Long)attributes.get("enable");

		if (enable != null) {
			setEnable(enable);
		}
	}

	/**
	* Returns the primary key of this chronik.
	*
	* @return the primary key of this chronik
	*/
	@Override
	public long getPrimaryKey() {
		return _chronik.getPrimaryKey();
	}

	/**
	* Sets the primary key of this chronik.
	*
	* @param primaryKey the primary key of this chronik
	*/
	@Override
	public void setPrimaryKey(long primaryKey) {
		_chronik.setPrimaryKey(primaryKey);
	}

	/**
	* Returns the chronik_id of this chronik.
	*
	* @return the chronik_id of this chronik
	*/
	@Override
	public long getChronik_id() {
		return _chronik.getChronik_id();
	}

	/**
	* Sets the chronik_id of this chronik.
	*
	* @param chronik_id the chronik_id of this chronik
	*/
	@Override
	public void setChronik_id(long chronik_id) {
		_chronik.setChronik_id(chronik_id);
	}

	/**
	* Returns the datetime of this chronik.
	*
	* @return the datetime of this chronik
	*/
	@Override
	public java.lang.String getDatetime() {
		return _chronik.getDatetime();
	}

	/**
	* Sets the datetime of this chronik.
	*
	* @param datetime the datetime of this chronik
	*/
	@Override
	public void setDatetime(java.lang.String datetime) {
		_chronik.setDatetime(datetime);
	}

	/**
	* Returns the message of this chronik.
	*
	* @return the message of this chronik
	*/
	@Override
	public java.lang.String getMessage() {
		return _chronik.getMessage();
	}

	/**
	* Sets the message of this chronik.
	*
	* @param message the message of this chronik
	*/
	@Override
	public void setMessage(java.lang.String message) {
		_chronik.setMessage(message);
	}

	/**
	* Returns the object of this chronik.
	*
	* @return the object of this chronik
	*/
	@Override
	public java.lang.String getObject() {
		return _chronik.getObject();
	}

	/**
	* Sets the object of this chronik.
	*
	* @param object the object of this chronik
	*/
	@Override
	public void setObject(java.lang.String object) {
		_chronik.setObject(object);
	}

	/**
	* Returns the participant of this chronik.
	*
	* @return the participant of this chronik
	*/
	@Override
	public java.lang.String getParticipant() {
		return _chronik.getParticipant();
	}

	/**
	* Sets the participant of this chronik.
	*
	* @param participant the participant of this chronik
	*/
	@Override
	public void setParticipant(java.lang.String participant) {
		_chronik.setParticipant(participant);
	}

	/**
	* Returns the user_id of this chronik.
	*
	* @return the user_id of this chronik
	*/
	@Override
	public long getUser_id() {
		return _chronik.getUser_id();
	}

	/**
	* Sets the user_id of this chronik.
	*
	* @param user_id the user_id of this chronik
	*/
	@Override
	public void setUser_id(long user_id) {
		_chronik.setUser_id(user_id);
	}

	/**
	* Returns the event_date_time_at of this chronik.
	*
	* @return the event_date_time_at of this chronik
	*/
	@Override
	public java.lang.String getEvent_date_time_at() {
		return _chronik.getEvent_date_time_at();
	}

	/**
	* Sets the event_date_time_at of this chronik.
	*
	* @param event_date_time_at the event_date_time_at of this chronik
	*/
	@Override
	public void setEvent_date_time_at(java.lang.String event_date_time_at) {
		_chronik.setEvent_date_time_at(event_date_time_at);
	}

	/**
	* Returns the event_date_time_down of this chronik.
	*
	* @return the event_date_time_down of this chronik
	*/
	@Override
	public java.lang.String getEvent_date_time_down() {
		return _chronik.getEvent_date_time_down();
	}

	/**
	* Sets the event_date_time_down of this chronik.
	*
	* @param event_date_time_down the event_date_time_down of this chronik
	*/
	@Override
	public void setEvent_date_time_down(java.lang.String event_date_time_down) {
		_chronik.setEvent_date_time_down(event_date_time_down);
	}

	/**
	* Returns the event_action of this chronik.
	*
	* @return the event_action of this chronik
	*/
	@Override
	public java.lang.String getEvent_action() {
		return _chronik.getEvent_action();
	}

	/**
	* Sets the event_action of this chronik.
	*
	* @param event_action the event_action of this chronik
	*/
	@Override
	public void setEvent_action(java.lang.String event_action) {
		_chronik.setEvent_action(event_action);
	}

	/**
	* Returns the enable of this chronik.
	*
	* @return the enable of this chronik
	*/
	@Override
	public long getEnable() {
		return _chronik.getEnable();
	}

	/**
	* Sets the enable of this chronik.
	*
	* @param enable the enable of this chronik
	*/
	@Override
	public void setEnable(long enable) {
		_chronik.setEnable(enable);
	}

	@Override
	public boolean isNew() {
		return _chronik.isNew();
	}

	@Override
	public void setNew(boolean n) {
		_chronik.setNew(n);
	}

	@Override
	public boolean isCachedModel() {
		return _chronik.isCachedModel();
	}

	@Override
	public void setCachedModel(boolean cachedModel) {
		_chronik.setCachedModel(cachedModel);
	}

	@Override
	public boolean isEscapedModel() {
		return _chronik.isEscapedModel();
	}

	@Override
	public java.io.Serializable getPrimaryKeyObj() {
		return _chronik.getPrimaryKeyObj();
	}

	@Override
	public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
		_chronik.setPrimaryKeyObj(primaryKeyObj);
	}

	@Override
	public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
		return _chronik.getExpandoBridge();
	}

	@Override
	public void setExpandoBridgeAttributes(
		com.liferay.portal.model.BaseModel<?> baseModel) {
		_chronik.setExpandoBridgeAttributes(baseModel);
	}

	@Override
	public void setExpandoBridgeAttributes(
		com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
		_chronik.setExpandoBridgeAttributes(expandoBridge);
	}

	@Override
	public void setExpandoBridgeAttributes(
		com.liferay.portal.service.ServiceContext serviceContext) {
		_chronik.setExpandoBridgeAttributes(serviceContext);
	}

	@Override
	public java.lang.Object clone() {
		return new chronikWrapper((chronik)_chronik.clone());
	}

	@Override
	public int compareTo(
		de.hsmannheim.pepa.patientenportal.apanwep.model.chronik chronik) {
		return _chronik.compareTo(chronik);
	}

	@Override
	public int hashCode() {
		return _chronik.hashCode();
	}

	@Override
	public com.liferay.portal.model.CacheModel<de.hsmannheim.pepa.patientenportal.apanwep.model.chronik> toCacheModel() {
		return _chronik.toCacheModel();
	}

	@Override
	public de.hsmannheim.pepa.patientenportal.apanwep.model.chronik toEscapedModel() {
		return new chronikWrapper(_chronik.toEscapedModel());
	}

	@Override
	public de.hsmannheim.pepa.patientenportal.apanwep.model.chronik toUnescapedModel() {
		return new chronikWrapper(_chronik.toUnescapedModel());
	}

	@Override
	public java.lang.String toString() {
		return _chronik.toString();
	}

	@Override
	public java.lang.String toXmlString() {
		return _chronik.toXmlString();
	}

	@Override
	public void persist()
		throws com.liferay.portal.kernel.exception.SystemException {
		_chronik.persist();
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}

		if (!(obj instanceof chronikWrapper)) {
			return false;
		}

		chronikWrapper chronikWrapper = (chronikWrapper)obj;

		if (Validator.equals(_chronik, chronikWrapper._chronik)) {
			return true;
		}

		return false;
	}

	/**
	 * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
	 */
	public chronik getWrappedchronik() {
		return _chronik;
	}

	@Override
	public chronik getWrappedModel() {
		return _chronik;
	}

	@Override
	public void resetOriginalValues() {
		_chronik.resetOriginalValues();
	}

	private chronik _chronik;
}